package cn.melonlib.graphql.cores.comp.engine;

import cn.melonlib.graphql.model.metadata.GraphqlFunction;
import graphql.schema.DataFetchingEnvironment;
import lombok.Getter;

import java.util.List;

@Getter
public class GraphqlHandler<TAG> {

    public GraphqlHandler(GraphqlFunction graphqlFunction, DataFetchingEnvironment environment, List<Object> parameters) {
        this.graphqlFunction = graphqlFunction;
        this.environment = environment;
        this.parameters = parameters;
    }

    private final GraphqlFunction graphqlFunction;

    private final DataFetchingEnvironment environment;

    private final List<Object> parameters;

    @Getter
    private TAG tag;

    public void setTag(TAG tag) {
        this.tag = tag;
    }
}
